package cn.learn.designpattern.strategy.algorithm;


import cn.learn.designpattern.strategy.PriceRegion;
import cn.learn.designpattern.strategy.SalePrice;

import java.math.BigDecimal;

/**
 * VIP会员计算价格
 * @author huangyezhan
 * @date 2018/11/20-22:47
 */

@PriceRegion(min=10000,max=20000)
public class VIP implements SalePrice {

    @Override
    public BigDecimal salePrice(BigDecimal orgnicPrice) {
        return orgnicPrice.multiply(new BigDecimal("0.9"));
    }
}
